﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BLO
{
    /// <summary>
    /// Summary description for UserModule
    /// </summary>
    public class UserModule
    {
        DTO.UserModule info;
        DAO.UserModule userModuleDAO;

        public UserModule()
        {
            this.userModuleDAO = new DAO.UserModule();
            this.info = new DTO.UserModule();
        }

           /// <summary>
        /// UserModule Information.
        /// </summary>
        public DTO.UserModule Info
        {
            get { return this.info; }
            set { this.info = value; }
        }

          /// <summary>
        /// Insert UserModule information to database.
        /// </summary>
        public int Insert()
        {
            return userModuleDAO.InsertUserModule(this.info);
        }

        /// <summary>
        /// Update information to database.
        /// </summary>
        public int Update()
        {
            return userModuleDAO.UpdateUserModule(this.info);
        }
          /// <summary>
        /// Delete this news from database.
        /// </summary>
        public int Delete()
        {
            return userModuleDAO.DeleteUserModule(this.info);
        }
    }
}